package com.stoken.service;

import com.stoken.domain.MemberWallet;
import com.symbio.service.impl.BaseService;

/**
 * 会员电子钱包操作服务接口
 * @author Frzhao
 *
 */
public interface MemberWalletService  extends BaseService<MemberWallet,Long> {
	
	/**
	 * 
	 * @param balance 余额
	 * @param userAccount 用户账户
	 * @return “1”表示提现金额大于账户余额，”0“表示成功
	 */
	public String verificationBalance(Double balance,String userAccount);
	
	/**
	 * 提现操作
	 * @param balance
	 * @param userAccount
	 * @return
	 */
	public void withdrawals(Double balance,String userAccount);
	
	/**
	 * 会员转账
	 * @param money 操作金额
	 * @param userAcount 操作账户
	 * @param targetAcount 目标账户
	 */
	public void transferOfCash(Double money,String userAcount,String targetAccount);
	
	/**
	 * 会员转现金到消费基金
	 * @param money 转账金额
	 * @param userAcount 操作账户
	 */
	public void transferOfConsume(Double money,String userAccount);

	/**
	 * 通过登录用户名查询会员电子钱包
	 * @param username
	 * @return 
	 */
	public MemberWallet findWalletByUsername(String username);
}
